from pydantic import BaseModel


class ServerSettings(BaseModel):
    host: str = "0.0.0.0"
    port: int = 8080
    reload: bool = True


class DataBaseSettings(BaseModel):
    host: str = "db"
    port: int = 5432
    db_name: str = "postgres"
    db_user: str = "postgres"
    db_password: str = "<PASSWORD>"


class Settings(BaseModel):
    server: ServerSettings
    database: DataBaseSettings
    aerich: DataBaseSettings
